use tokio::process::Command as TkCmd;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut child = TkCmd::new("ls")
        .arg("-l")
        .arg("-h")
        .spawn()
        .expect("failed to spawn Command");
    let status = child.wait().await?;
    println!("Command exited with status: {}", status);
    Ok(())
}